<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>练习</title>
	<style>
	div{
		display: inline-block;
	}
	</style>
</head>
<body>
  <div>名字：</div>
  <input id="ipt" type="text">
  <h1>Hello
    <span></span>
  </h1>

  <script src="../biaodan exercise/jquery-1.12.0.js"></script>
  <script>
  	var $ipt = $('#ipt');

  	$ipt.on('keyup',function(){
  		var $this = $(this);
  	    $('span').html($this.val())
       
  	})

 

  </script>
</body>
</html>